package demo3;

public class Bird extends Animal implements IFly,IRun{
    public Bird(String name) {
        super(name);
    }

    @Override
    public void eat() {
        System.out.println(this.name + "正在吃小虫子....");
    }

    @Override
    public void iFly() {
        System.out.println(this.name + "正在奋翅高飞....");
    }

    @Override
    public void iRun() {
        System.out.println(this.name + "正在使用小腿腿走路....");
    }
}
